package com.jfs.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description 设备通道表
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/8/3
 */
@Data
@TableName("t_device_channel")
@KeySequence(value = "customIdGenerator")
@ApiModel(description = "设备通道表")
public class DeviceChannel {
    @ApiModelProperty(value = "设备主键")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "通道编号")
    @TableField(value = "channel_id")
    private String channelId;

    @ApiModelProperty(value = "通道名称")
    private String name;

    @ApiModelProperty(value = "设备制造商")
    private String manufacturer;

    @ApiModelProperty(value = "设备型号")
    private String model;

    @ApiModelProperty(value = "设备归属")
    private String owner;

    @TableField(value = "civil_code")
    @ApiModelProperty(value = "行政区域")
    private String civilCode;

    @ApiModelProperty(value = "设备ip")
    private String ip;

    @ApiModelProperty(value = "是否有子设备1有，0没有")
    private Integer parental;

    @ApiModelProperty(value = "所属设备id")
    @TableField(value = "device_id")
    private String deviceId;

    @ApiModelProperty(value = "信令安全模式（缺省为0；  0：不采用；2：S/MIME签名方式；3：S/MIME加密签名同时采用方式；4：数字摘要方式")
    @TableField(value = "safety_way")
    private Integer safetyWay;

    @ApiModelProperty(value = "注册方式缺省为1； 1： 符合IETF RFC 3261标准的认证注册模式；2： 基于口令的双向认证注册模式；3： 基于数字证书的双向认证注册模式")
    @TableField(value = "register_way")
    private Integer registerWay;

    @ApiModelProperty(value = "保密属性缺省为0；0：不涉密，1：涉密")
    private Integer secrecy;

    @ApiModelProperty(value = "设备状态true在线false离线")
    private Boolean status;

    @ApiModelProperty(value = "经度")
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    private Double latitude;

    @ApiModelProperty(value = "摄像机类型扩展，标识摄像机类型：1-球机；2-半球；3-固定枪机；4-遥控枪机。当目录项为摄像机时可选")
    @TableField(value = "ptz_type")
    private Integer ptzType;
}
